using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using ALC.Core.ViewModels.Workpiece;

namespace ALC.Views.Table
{
    public partial class WorkpieceTableListView : UserControl
    {
        public WorkpieceTableListView()
        {
            InitializeComponent();
        }

        public static readonly DependencyProperty WorkpieceViewModelsProperty = DependencyProperty.Register(
            "WorkpieceViewModels", typeof(ObservableCollection<WorkpieceViewModel>), typeof(WorkpieceTableListView), new PropertyMetadata(default(ObservableCollection<WorkpieceViewModel>)));

        public ObservableCollection<WorkpieceViewModel> WorkpieceViewModels
        {
            get { return (ObservableCollection<WorkpieceViewModel>) GetValue(WorkpieceViewModelsProperty); }
            set { SetValue(WorkpieceViewModelsProperty, value); }
        }
    }
}